//仓库的入口文件
import reducer from "./reducer";
// 创建仓库
// createStore 提示被废弃了...
// import { createStore } from 'redux'
// const store = createStore(reducer)
// export  default store;

// 测试新的API
// 是当前可以使用~~~
import { configureStore } from '@reduxjs/toolkit';
const store = configureStore({
    reducer: reducer,
});
export default store;